package com.mykt.service;

import com.mykt.constant.SecurityConstants;
import com.mykt.domain.log.SystemOperLog;
import com.mykt.system.RemoteUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;


@Service
public class AsyncLogService
{

    @Autowired
    private RemoteUserService remoteUserService;

    @Async
    public void saveSysLog(SystemOperLog sysOperLog) {
        remoteUserService.write(sysOperLog, SecurityConstants.INNER);
    }

}
